#include("cdsLayout.html")
#include("paginate.html")
#@cdsLayout()

#define cdsContent()
<div class="banner border-top-bottom">
    <ul class="carousel">
        <li class="item" style="background:#212e41;">
        	<img src="#(ctx)/cds/#(site.siteSign)/imgs/bannerx.jpg" class="img-responsive">
        </li>
    </ul>
</div>
<br><br>

<div class="container">
    <div class="xs4 xm3 lefter">
        <button class="button icon-navicon bg margin-bottom" data-target="#subnav"></button>
        <ul class="nav nav-sub border-main submenu nav-navicon" id="subnav">
            <li class="nav-head icon-caret-right"> #(parentColumn.name??)</li>
            #cld(parentColumn.enName??,"c")
            <li #if(colEnName==c.enName??) class="active" #end>
            	<a href="/enterColArts?col=#(c.enName??)">#(c.name??)</a>
            </li>
            #end
        </ul>
    </div>
    <div class="xs8 xm9">
        <h2 class="border-bottom padding-bottom text-main">
        	<span class="float-right hidden-l">
        		<ul class="bread">
        			<li><a href="/" class="icon-home"> 首页</a></li>
        			<li><a href="javascript:;">#(parentColumn.name??)</a></li>
        			<li><a href="javascript:;">#(column.name??)</a></li>
        		</ul>
        	</span>
        	<span class="icon-caret-right"></span> #(column.name??)</h2>
        <br>
        <div class="detail">
            <ul class="list-text list-underline list-striped">
            	#for(x : artPage.getList())
	            	#set(action="/viewArt?id=")
	            	#if(x.type=="2")
	            		#set(action="/viewPicArt?id=")
	            	#end
	                <li>
	                	<span class="date">#date(x.createTime,"yyyy/MM/dd")</span>
	                	<a href="#(action)#(x.id)">#cutStr(x.title,25)</a>
	                </li>
                #end
            </ul>
        </div>
        <br><br>
        <div align="center">
	        ###分页
	        #set(append='')
			#if(colEnName)
				#set(append=append+'&col='+colEnName)
			#end
			#if(limit)
				#set(append=append+'&limit='+limit)
			#end
			#@paginate?(artPage.totalRow, artPage.pageNumber, artPage.totalPage, '/enterColArts?page=')
	    </div>
    </div>
</div>
<br><br>

#end